package request

type CreateUserReq struct {
	Username string `form:"username" json:"username" binding:"required,min=6,max=20"`
	Password string `form:"password" json:"password" binding:"required,min=6,max=20"`
	Role     int    `form:"role" json:"role" binding:"required"`
}

type UserLoginReq struct {
	Username  string `form:"username" json:"username" binding:"required,min=6,max=20"`
	Password  string `form:"password" json:"password" binding:"required,min=6,max=20"`
	CaptchaId string `form:"captcha_id" json:"captcha_id" binding:"required"`
	Captcha   string `form:"captcha" json:"captcha" binding:"required,min=5,max=5"`
}

type UpdateUserRoleReq struct {
	Username string `form:"username" json:"username" binding:"required,min=6,max=20"`
	Role     int    `form:"role" json:"role" binding:"required"`
}

type UpdateUsernameReq struct {
	Username string `form:"username" json:"username" binding:"required,min=6,max=20"`
}

type DeleteUsernameReq struct {
	Username string `uri:"username" json:"username" binding:"required,min=6,max=20"`
}
